<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const a = {
        money: 1000,
        __proto__: null, //原型链结束（终点）
      };
      const b = {
        __proto__: a,
      };
      const c = {
        money: 500,
        __proto__: b,
      };
      const d = {
        money: 5,
        __proto__: c,
      };

      // 闭环 报错
      // a.__proto__ = d;
      // console.log(d.money);
    </script>
  </body>
</html>
